package me.weijing.common.model;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class UserData implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = -955026269048280522L;
    @DatabaseField(generatedId = true)
    private int id;// 数据库字段，自增长
    @DatabaseField
    private long uid;// 标识
    @DatabaseField
    private String nick; // 昵称
    @DatabaseField
    private String phone; // 电话号码
    @DatabaseField
    private String createTime; // 创建时间
    @DatabaseField
    private String lastLogin;// 最近一次登录
    private String region; // 区域
    @DatabaseField
    private String pwd;// 用户密码
    @DatabaseField
    private String token;// 用户令牌
    @DatabaseField
    private String email;// email地址
    @DatabaseField
    private String avatar;// 头像
    @DatabaseField
    private String avatarImg;
    @DatabaseField
    private String signature;// 签名
    @DatabaseField(canBeNull = true, foreign = true)
    private OpenfireUser openfireUser;

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(String lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public OpenfireUser getOpenfireUser() {
        return openfireUser;
    }

    public void setOpenfireUser(OpenfireUser openfireUser) {
        this.openfireUser = openfireUser;
    }

    public String getAvatarImg() {
        return avatarImg;
    }

    public void setAvatarImg(String avatarImg) {
        this.avatarImg = avatarImg;
    }

    @Override
    public String toString() {
        return "UserData [uid=" + uid + ", nick=" + nick + ", phone=" + phone + ", createTime=" + createTime + ", location=" + ", lastLogin=" + lastLogin
                + ", region=" + region + ", pwd=" + pwd + ", token=" + token + ", email=" + email + ", avatar=" + avatar + ", signature=" + signature
                + ", openfireUser=" + openfireUser + "]";
    }
}
